<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String fristname = "meixd"; 
String username = "111111";
String passwd = "111111";
String devicenum = "632042b612a16f62e42a69f7ac6767adaa4f4d63";

//测试用户

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>炫直播接口调用说明页</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  <style>
  	body
	{
		font-size:12px;
		font-family:微软雅黑, 宋体;
	}
	table{ border-collapse:collapse; border:0px solid #cbcbcb; text-align:left; }
	
	h2{ font-size:18px;border-bottom:1px solid #dedede; line-height:34px; height:34px; padding-left:10px; font-weight:normal; color:#333;}
  </style>
  <body>
  <table border="1" width="100%"><tr><td width="50%" valign="top">
  <h2>手机客户端接口说明</h2><%--
  <a href="<%=basePath%>XzbApi!groupregist.action?groupname=&groupdesc=&grouppwd=&usercount=">组注册</a><br/>
  	参数说明：<br>
  	&nbsp;&nbsp;&nbsp;&nbsp;groupname:组名，必填项<br>
  	&nbsp;&nbsp;&nbsp;&nbsp;groupdesc:组描述，必填项<br>
  	&nbsp;&nbsp;&nbsp;&nbsp;grouppwd:密码，（目前采用明文密码）必填项<br>
  	&nbsp;&nbsp;&nbsp;&nbsp;usercount:组内最大用户数，可以不填，默认值是10<br>
  <a href="<%=basePath%>XzbApi!userregist.action?groupname=&username=&nickname=&userpwd=&days=">用户注册</a><br/>
  	参数说明：<br>
  	&nbsp;&nbsp;&nbsp;&nbsp;groupname:组名，必填项<br>
  	&nbsp;&nbsp;&nbsp;&nbsp;username:用户名，必填项<br>
  	&nbsp;&nbsp;&nbsp;&nbsp;userpwd:密码，（目前采用明文密码）可以不填，默认123456<br>
  	&nbsp;&nbsp;&nbsp;&nbsp;nickname:昵称，可以不填，默认值是用户名<br>
  	<br>
  --%><a href="<%=basePath%>XzbApi!logininfo.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceToken=89e616242ec6fdd4aa9a15cf3a4ba033a1a6a34f8501340d4faf2577899fdab3&deviceNum=<%=devicenum %>&deviceType=iPod touch&deviceSys=5.0.1&pushtype=ios&scode=123123">登陆接口</a><br/>
  <a href="<%=basePath%>XzbApi!ioslogout.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>">ios退出接口：ios退出主要是把系统中的pushornot的标识位置为0</a><br/>
  <a href="<%=basePath%>XzbApi!updateuser.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&longitude=1&latitude=1&countrycode=CN&countryname=中国&province=北京&city=北京&counties=朝阳">更新用户信息</a><br/>
  <br>
  <a href="<%=basePath%>XzbApi!updatevideo.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&vid=123&title=新标题&longitude=1&latitude=1&address=1&detail=">更新视频信息--标题，地理位置等等</a><br/>
  <a href="<%=basePath%>XzbApi!getlivevideos.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&pageid=&pagesize=">获取直播测试</a><br/>
  <a href="<%=basePath%>XzbApi!gethistoryvideos.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&pageid=&pagesize=">获取历史测试</a><br/>
  <a href="<%=basePath%>XzbApi!getonevideo.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&vid=">获取视频信息</a><br/>
  <a href="<%=basePath%>XzbApi!getmyvideos.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&pageid=&pagesize=">我的视频</a><br/>
  <br>
  <a href="<%=basePath%>XzbApi!sendmessage.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&text=消息测试">发送文字消息</a><br/>
  <a href="<%=basePath%>XzbApi!getgroupmessage.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&pageid=1">查询组内消息----0语音，1文字</a><br/>
  <a href="addvoice.jsp">语音消息上传测试</a><br/>
  <br>
  <a href="addphoto.jsp">照片上传测试</a><br/>
  <a href="<%=basePath%>XzbApi!getmyphotoes.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&pageid=1">查询我的照片</a><br/>
  <a href="<%=basePath%>XzbApi!getgroupphotos.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&pageid=1">查询组内的照片</a><br/>
  <a href="<%=basePath%>XzbApi!updatephoto.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&pid=1-15ecc085fb77ac1f940bef1f&title=1">修改照片标题</a><br/>
  <br>
  <a href="<%=basePath%>XzbApi!getgroupuserposition.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&pageid=1">查找本组人员位置</a><br/>
  <br>
  <a href="<%=basePath%>XzbApi!getuserauth.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>">客户端申请鉴权</a><br/>
  <a href="<%=basePath%>XzbApi!getuserinfo.action?&deviceNum=<%=devicenum %>">一键获取信息</a><br>
  <br>
  <a href="<%=basePath%>XzbApi!upgrade.action?fristname=<%=fristname %>&userName=<%=username %>&passwd=<%=passwd %>&deviceNum=<%=devicenum %>&os=&versionCode=&versionName=">版本检测（访问地址固定）---os系统类型，可选值ios或者android|versionCode版本号|versionName版本名称</a><br/>
  <h2>以下内容为双向视频语音提供的接口</h2>
	<a href="<%=basePath%>XzbApi!returnvideomsg.action?fromuser=&videoid=&newvideoid=">观看端拍摄视频使用</a><br/>
	参数说明：<br/>
	fromuser:观看端的用户名<br/>
	videoid：观看端观看视频的id<br/>
	newvideoid:观看端发起的直播视频id<br/>
	手机端解析消息格式：md5("woan")+"|"+"camera"+"|play"+"##"+newvideoid ，后面的newvideoid就是需要播放的视频id，根据这个id在调用接口去找到视频地址<br/>
	<a href="<%=basePath%>XzbApi!begintalk.action?fromuser=&fromvideoid=&tovideoid=">发起语音对讲</a><br/>
	参数说明：<br/>
	fromuser:发起端的用户名<br/>
	fromvideoid：发起语音消息端的视频id<br/>
	tovideoid:接收语音消息端的视频id<br/>
	手机端解析消息格式：md5("woan")+"|"+"audio"+"|play"+"##"+fromvideoid<br/>
	<a href="<%=basePath%>XzbApi!endtalk.action?fromuser=&fromvideoid=&tovideoid=">停止语音对讲</a><br/>
	参数说明：<br/>
	fromuser:发起端的用户名<br/>
	fromvideoid：发起停止语音消息端的视频id<br/>
	tovideoid:接收停止语音消息端的视频id<br/>
	手机端解析消息格式：md5("woan")+"|"+"audio"+"|stop"+"##"+fromvideoid<br/>
  </td>
  <td width="50%"  valign="top">
  	<h2>Ipad服务端接口说明</h2>
  	<a href="<%=basePath%>XzbIPadApi!logininfo.action?groupname=admin&username=woan&userpwd=woan&devicetoken=&devicenum=&devicetype=&devicesys=&pushtype=ios">登陆接口</a><br/>
  	</br>
  	<a href="<%=basePath%>XzbIPadApi!listlivevideos.action?groupname=admin&username=woan&userpwd=woan&devicenum=&pageid=&pagesize=">直播视频</a><br/>
	<a href="<%=basePath%>XzbIPadApi!listhistoryvideos.action?groupname=admin&username=woan&userpwd=woan&devicenum=&pageid=&pagesize=">历史视频</a><br/>
	<a href="<%=basePath%>XzbIPadApi!listgroupuser.action?groupname=admin&username=woan&userpwd=woan&devicenum=">获取组内人员</a>---用于自定义设置的人员选择<br/>
	<a href="<%=basePath%>XzbIPadApi!listconfig.action?groupname=admin&username=woan&userpwd=woan&devicenum=">获取自定义直播设置</a>---用于修改自定义设置<br/>
  	<a href="<%=basePath%>XzbIPadApi!listconfiglivevideos.action?groupname=admin&username=woan&userpwd=woan&devicenum=">获取自定义顺序视频</a>---用于显示自定义播放的内容(未设置的时候按默认顺序获取数据，设置后则按设置获取数据)<br/>
	<a href="<%=basePath%>XzbIPadApi!configlivevideos.action?groupname=admin&username=woan&userpwd=woan&devicenum=&config=1@@0,2@test@0">保存自定义设置直播页面</a>---类似于网页自定义9宫格的播放内容，新增保存，修改保存都调用这个接口<br/>
  	<a href="<%=basePath%>XzbIPadApi!listvideotalk.action?groupname=admin&username=woan&userpwd=woan&devicenum=&videoid=4fa889696173cf1d3700003f-0e5b68b96c06ec5885d7cfd6493e8fad">获取对讲信息</a>---正在直播的视频对讲的内容<br/>
	<a href="<%=basePath%>XzbIPadApi!sendvideotalk.action?groupname=admin&username=woan&userpwd=woan&devicenum=&videoid=0e5b68b96c06ec5885d7cfd6493e8fad&msgtext=11111&touser=">发送对讲信息--文字</a><br/>
	<a href="<%=basePath%>addtalk.jsp">发送对讲信息--语音</a><br/>
	<a href="<%=basePath%>XzbIPadApi!getvideoinfo.action?groupname=admin&&username=woan&userpwd=woan&devicenum=&videoid=">根据视频id获取视频信息</a><br/>
	</br>
  	<a href="<%=basePath%>XzbIPadApi!listphotos.action?groupname=admin&username=woan&userpwd=woan&devicenum=&pageid=1&pagesize=">查看组内的照片</a><br/>
  	<br/>
	<a href="<%=basePath%>XzbIPadApi!sendmessage.action?groupname=admin&username=woan&userpwd=woan&devicenum=&message=消息测试">发送消息</a><br/>
	<a href="<%=basePath%>addvoice.jsp">发送语音消息</a><br/>
  	<a href="<%=basePath%>XzbIPadApi!listmessage.action?groupname=admin&username=woan&userpwd=woan&devicenum=&pageid=1&pagesize=">组内历史消息</a><br/>
  	<br>
 	<a href="<%=basePath%>XzbIPadApi!baiduposition.action?groupname=admin&username=woan&userpwd=woan&devicenum=">位置信息</a><br/>
	</br>
	<a href="<%=basePath%>XzbIPadApi!upgrade.action?groupname=admin&username=woan&userpwd=woan&devicenum=&os=&vername=&vercode=">ipad检测新版本<br/>
  	<br>
	
	
  	<%--<a href="<%=basePath%>XzbIPadApi!gethistoryvideospage.action?groupname=admin&username=woan&userpwd=woan&devicenum=&pagenum=4">历史视频页数---客户端提供每页显示的数量</a><br/>
  	<a href="<%=basePath%>XzbIPadApi!editvideos.action?groupname=admin&username=woan&userpwd=woan&devicenum=&videoid=1-2b7343e340e73c9e1614f730&videodetail=test">编辑视频描述</a><br/>
  	<a href="<%=basePath%>XzbIPadApi!deletevideos.action?groupname=admin&username=woan&userpwd=woan&devicenum=&videoid=1-72fce5f657045d0f27f4de9c,1-763ce40a3b02bfa7fd7a4ae5,1-7766a4bd92b71e0e84c94930,1-d3828bd3a830184dff4e41d1">删除视频</a>---支持单个删除和多个删除，如果多个删除，视频id中间用","分隔<br/>
  	<a href="<%=basePath%>XzbIPadApi!searchvideos.action?groupname=admin&username=woan&userpwd=woan&devicenum=&detail=1&title=&paishename=1&pageid=1">搜索视频</a>---根据视频拍摄人，视频标题，视频描述搜索视频<br/>
	
  	<a href="<%=basePath%>XzbIPadApi!getphotospage.action?groupname=admin&username=woan&userpwd=woan&devicenum=&pagenum=4">查看组内的照片页数---客户端提供每页显示的数量</a><br/>
 	<a href="<%=basePath%>XzbIPadApi!editphotos.action?groupname=admin&username=woan&userpwd=woan&devicenum=&photoid=20121221103503ldn&title=test">编辑照片描述</a><br/>
  	<a href="<%=basePath%>XzbIPadApi!deletephotos.action?groupname=admin&username=woan&userpwd=woan&devicenum=&photoid=20121221103503ldn,4fa889696173cf1d3700003f-171cc7dfe47d5ad0a138b78fd13d7f16">删除照片</a>---支持单个删除和多个删除，如果多个删除，照片id中间用","分隔<br/>
  	<a href="<%=basePath%>XzbIPadApi!searchphotos.action?groupname=admin&username=woan&userpwd=woan&devicenum=&title=&begintime=2012-07-01&endtime=2012-12-31&fabuname=1&pageid=1">搜索照片</a>---根据发布人，照片描述，开始时间结束时间查询照片<br/>
	</br>
	
  	<a href="<%=basePath%>XzbIPadApi!searchmessage.action?groupname=admin&username=woan&userpwd=woan&deviceNum=&begintime=2012-07-01&endtime=2012-12-31&fabuname=1&pageid=1">搜索信息</a>---根据发布人，开始时间结束时间查询信息<br/>
  	<a href="<%=basePath%>XzbIPadApi!deletemessage.action?groupname=admin&username=woan&userpwd=woan&deviceNum=&messageid=20121123154606B3456,20121123162429098F2">删除消息</a>------支持单个删除和多个删除，如果多个删除，信息id中间用","分隔<br/>
  	</br>
	
	
	
	
  --%></td>
  </tr></table>
  
</body>
</html>
